package dao

import (
	"time"
)

// 秒杀信息和商品对象封装
type FlashPromotionProduct struct {
	FlashPromotionPrice float64
	FlashPromotionCount int64
	FlashPromotionLimit int64
}

// 首页当前秒杀场次信息
type HomeFlashPromotion struct {
	StartTime     time.Time
	EndTime       time.Time
	NextStartTime time.Time
	NextEndTime   time.Time
	ProductList   []FlashPromotionProduct
}

// 首页内容返回信息封装
type HomeContentResult struct {
	AdvertiseList      []SmsHomeAdvertise //轮播广告
	BrandList          []PmsBrand         //推荐品牌
	HomeFlashPromotion HomeFlashPromotion //当前秒杀场次
	NewProductList     []PmsProduct       //新品推荐
	hotProductList     []PmsProduct       //人气推荐
	SubjectList        []CmsSubject       //推荐专题
}
